<? if (isset($prev) && $prev):?>
<div id="gallery-nav-left">
    <?=HTML::anchor('#'.$prev, HTML::image('assets/img/nav_arrow_left.png'))?>
</div>
<? endif ?>
<div id="gallery-items">
    <? foreach ($items as $img): ?>
        <div class="gallery-item">
            <a href="#" data-href="/<?=$img->file?>" title="<?=$img->description?>">
                <?=HTML::image($img->thumb, array('class' => 'item-thumb'))?>
            </a>
        </div>
    <? endforeach ?>
</div>
<? if (isset($next) && $next):?>
<div id="gallery-nav-right">
    <?=HTML::anchor('#', HTML::image('assets/img/nav_arrow_right.png'))?>
</div>
<? endif ?>
